vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Jul 24 
20:34:47 2013 +0300| [d7397d93fc06628ac9a89a7c665049b32b42c0f2] | committer: 
Rémi Denis-Courmont

avcodec. remove redundant code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7397d93fc06628ac9a89a7c665049b32b42c0f2
---

 modules/codec/avcodec/video.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 5f1931b..967cb2e 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1103,11 +1103,6 @@ static int lavc_GetFrame(struct AVCodecContext *ctx, 
AVFrame *frame, int flags)
         frame->data[i] = pic->p[i].p_pixels;
         frame->linesize[i] = pic->p[i].i_pitch;
     }
-    for (unsigned i = PICTURE_PLANE_MAX; i < AV_NUM_DATA_POINTERS; i++)
-    {
-        frame->data[i] = NULL;
-        frame->linesize[i] = 0;
-    }
     return 0;
 }
 #else

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to