diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-16 01:36:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-16 01:36:49 +0100 |
commit | 4257ce112c41f741408b817d305630dadc3ee52d (patch) | |
tree | 7121a52130f9b73dd4a2cdbae2d71d50918a39d5 /ffmpeg.c | |
parent | c743aad557fe14980b9912869d90008ecb29ba97 (diff) | |
parent | 702985b8b7bfe0d8eac2747f3a03e7f15886364c (diff) | |
download | ffmpeg-4257ce112c41f741408b817d305630dadc3ee52d.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
dxa: remove useless code
lavf: don't select an attached picture as default stream for seeking.
avconv: remove pointless checks.
avconv: check for get_filtered_frame() failure.
avconv: remove a pointless check.
swscale: convert hscale() to use named arguments.
x86inc: add *mp named argument support to DEFINE_ARGS.
swscale: convert hscale to cpuflags().
Conflicts:
ffmpeg.c
libswscale/x86/scale.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2178,13 +2178,13 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int } if (!ist->filtered_frame && !(ist->filtered_frame = avcodec_alloc_frame())) { ret = AVERROR(ENOMEM); - goto end; + goto fail; } filtered_frame = ist->filtered_frame; *filtered_frame= *decoded_frame; //for me_threshold avfilter_fill_frame_from_video_buffer_ref(filtered_frame, ost->picref); filtered_frame->pts = av_rescale_q(ost->picref->pts, ist_pts_tb, AV_TIME_BASE_Q); - if (ost->picref->video && !ost->frame_aspect_ratio) + if (!ost->frame_aspect_ratio) ost->st->codec->sample_aspect_ratio = ost->picref->video->sample_aspect_ratio; do_video_out(output_files[ost->file_index].ctx, ost, ist, filtered_frame); cont: @@ -2195,7 +2195,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int #endif } -end: +fail: av_free(buffer_to_free); return ret; } |