summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-11-30 21:50:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-11-30 21:50:16 +0000
commit9d2a06951928d6fd35cc5effaa702a0e91b17744 (patch)
treece6fa834fdfbaa523f3e44e50f8719f1308ea0a0 /ffplay.c
parent1b307febc4d44f094ae9ebe83a34d8810263b286 (diff)
raw rgb flip fix
Originally committed as revision 3724 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ffplay.c b/ffplay.c
index 13fbd989a7..5d95df5712 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -899,15 +899,6 @@ static int video_thread(void *arg)
if (pkt->dts != AV_NOPTS_VALUE)
pts = (double)pkt->dts / AV_TIME_BASE;
- if (is->video_st->codec.codec_id == CODEC_ID_RAWVIDEO) {
- avpicture_fill((AVPicture *)frame, pkt->data,
- is->video_st->codec.pix_fmt,
- is->video_st->codec.width,
- is->video_st->codec.height);
- frame->pict_type = FF_I_TYPE;
- if (output_picture2(is, frame, pts) < 0)
- goto the_end;
- } else {
len1 = avcodec_decode_video(&is->video_st->codec,
frame, &got_picture,
pkt->data, pkt->size);
@@ -917,7 +908,6 @@ static int video_thread(void *arg)
if (output_picture2(is, frame, pts) < 0)
goto the_end;
}
- }
av_free_packet(pkt);
if (step)
if (cur_stream)