Merge remote-tracking branch 'qatar/master'
* qatar/master: fate: workaround for slighly broken 'test' shell builtin mimic: initialize padding of swap_buf through av_fast_padded_malloc eamad: initialize padding of bitstream_buf through av_fast_padded_malloc() raw demuxer: initialize end of partial packets Conflicts: tests/fate-run.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
835fd779a4
@ -276,7 +276,8 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
}
|
||||
}
|
||||
|
||||
av_fast_malloc(&s->bitstream_buf, &s->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
av_fast_padded_malloc(&s->bitstream_buf, &s->bitstream_buf_size,
|
||||
buf_end - buf);
|
||||
if (!s->bitstream_buf)
|
||||
return AVERROR(ENOMEM);
|
||||
s->dsp.bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2);
|
||||
|
@ -78,7 +78,7 @@ ffmpeg(){
|
||||
dec_opts="-threads $threads -thread_type $thread_type"
|
||||
ffmpeg_args="-nostats -cpuflags $cpuflags"
|
||||
for arg in $@; do
|
||||
[ ${arg} = -i ] && ffmpeg_args="${ffmpeg_args} ${dec_opts}"
|
||||
[ x${arg} = x-i ] && ffmpeg_args="${ffmpeg_args} ${dec_opts}"
|
||||
ffmpeg_args="${ffmpeg_args} ${arg}"
|
||||
done
|
||||
run ffmpeg ${ffmpeg_args}
|
||||
|
Loading…
Reference in New Issue
Block a user