diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 23:30:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 23:30:25 +0200 |
commit | 537a9e5cc28fe55deedc30953737cff124ac570f (patch) | |
tree | 3ebcc12011b67905d09f439dc85421cb1834927c /ffmpeg.c | |
parent | 508e47a5751b063e5b3d1d6aceda8a19ad8b1d37 (diff) | |
parent | d853e571ad5e7e12c6a68cfde390daced7d85fbb (diff) | |
download | ffmpeg-537a9e5cc28fe55deedc30953737cff124ac570f.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
ppc: fix some pointer to integer casts
ppc: fix 32-bit PIC build
vmdaudio: fix decoding of 16-bit audio format.
lavf: do not set codec_tag for rawvideo
h264: check for out of bounds reads in ff_h264_decode_extradata().
flvdec: Check for overflow before allocating arrays
avconv: use correct output stream index when checking max_frames
avconv: remove fake coded_frame on streamcopy hack
Conflicts:
avconv.c
libavcodec/h264.c
libavcodec/ppc/asm.S
libavcodec/vmdav.c
libavformat/flvdec.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1845,7 +1845,6 @@ static int output_packet(InputStream *ist, int ist_index, abort(); } } else { - AVFrame avframe; //FIXME/XXX remove this AVPicture pict; AVPacket opkt; int64_t ost_tb_start_time= av_rescale_q(of->start_time, AV_TIME_BASE_Q, ost->st->time_base); @@ -1861,10 +1860,6 @@ static int output_packet(InputStream *ist, int ist_index, /* no reencoding needed : output the packet directly */ /* force the input stream PTS */ - avcodec_get_frame_defaults(&avframe); - ost->st->codec->coded_frame= &avframe; - avframe.key_frame = pkt->flags & AV_PKT_FLAG_KEY; - if(ost->st->codec->codec_type == AVMEDIA_TYPE_AUDIO) audio_size += data_size; else if (ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) { @@ -2503,8 +2498,8 @@ static int transcode(OutputFile *output_files, int nb_output_files, } if (ost->frame_number >= ost->max_frames) { int j; - for (j = of->ost_index; j < of->ctx->nb_streams; j++) - output_streams[j].is_past_recording_time = 1; + for (j = 0; j < of->ctx->nb_streams; j++) + output_streams[of->ost_index + j].is_past_recording_time = 1; continue; } } |