Browse code

lavd: Drop unneeded av_init_packet()s

The input packet is already unref'd by the calling function.

Vittorio Giovara authored on 2016/07/14 00:41:35
Showing 2 changed files
... ...
@@ -861,7 +861,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
861 861
 #endif
862 862
     int res;
863 863
 
864
-    av_init_packet(pkt);
865 864
     if ((res = mmap_read_frame(s1, pkt)) < 0) {
866 865
         return res;
867 866
     }
... ...
@@ -511,7 +511,6 @@ static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
511 511
         nanosleep(&ts, NULL);
512 512
     }
513 513
 
514
-    av_init_packet(pkt);
515 514
     pkt->data = image->data;
516 515
     pkt->size = s->frame_size;
517 516
     pkt->pts  = curtime;