]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h261dec.c
AAC packetiser cleanup: remove check for a condition that cannot happen
[ffmpeg] / libavcodec / h261dec.c
index 70542869c5f0234c0ce3e2c4221c88c8e04fa8ea..3509e9f17155a06368585b158b7b8ec3cd5a5495 100644 (file)
@@ -543,8 +543,10 @@ static int get_consumed_bytes(MpegEncContext *s, int buf_size){
 
 static int h261_decode_frame(AVCodecContext *avctx,
                              void *data, int *data_size,
-                             const uint8_t *buf, int buf_size)
+                             AVPacket *avpkt)
 {
+    const uint8_t *buf = avpkt->data;
+    int buf_size = avpkt->size;
     H261Context *h= avctx->priv_data;
     MpegEncContext *s = &h->s;
     int ret;