summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-09-03 22:20:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-09-03 22:20:05 +0000
commitdafc3856d9c34d85a5c172c66d6a6e8ffa201b03 (patch)
tree7277ca511510ad29b9b8f8e3f3d52fdaf273b95c
parentbee0d9e587cb5ca0d551a2762ef0c872123528e1 (diff)
downloadffmpeg-streaming-dafc3856d9c34d85a5c172c66d6a6e8ffa201b03.zip
ffmpeg-streaming-dafc3856d9c34d85a5c172c66d6a6e8ffa201b03.tar.gz
10l
Originally committed as revision 2202 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 82b12c8..56b884a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -428,14 +428,15 @@ static void pre_process_video_frame(AVInputStream *ist, AVPicture *picture, void
picture2 = &picture_tmp;
avpicture_fill(picture2, buf, dec->pix_fmt, dec->width, dec->height);
- if (do_deinterlace && avpicture_deinterlace(picture2, picture,
- dec->pix_fmt, dec->width, dec->height) < 0) {
- /* if error, do not deinterlace */
- av_free(buf);
- buf = NULL;
- picture2 = picture;
- }
- else {
+ if (do_deinterlace){
+ if(avpicture_deinterlace(picture2, picture,
+ dec->pix_fmt, dec->width, dec->height) < 0) {
+ /* if error, do not deinterlace */
+ av_free(buf);
+ buf = NULL;
+ picture2 = picture;
+ }
+ } else {
if (img_convert(picture2, dec->pix_fmt, picture,
dec->pix_fmt, dec->width, dec->height) < 0) {
/* if error, do not copy */
OpenPOWER on IntegriCloud