summaryrefslogtreecommitdiff
path: root/avconv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-25 23:30:25 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-25 23:30:25 +0200
commit537a9e5cc28fe55deedc30953737cff124ac570f (patch)
tree3ebcc12011b67905d09f439dc85421cb1834927c /avconv.c
parent508e47a5751b063e5b3d1d6aceda8a19ad8b1d37 (diff)
parentd853e571ad5e7e12c6a68cfde390daced7d85fbb (diff)
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 'avconv.c')
-rw-r--r--avconv.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/avconv.c b/avconv.c
index aecf1d5cf3..112264e753 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1826,7 +1826,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);
@@ -1842,10 +1841,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) {
@@ -2455,8 +2450,8 @@ static int transcode(OutputFile *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;
}
}