]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/adp.c
avcodec/vaapi: Remove old and deprecated VAAPI context and header
[ffmpeg] / libavformat / adp.c
index 56f302acfd8db77339606ad91900610dc9ed537f..b0ee09753e48165512600d3a504038fc79c0ab5b 100644 (file)
@@ -75,14 +75,9 @@ static int adp_read_packet(AVFormatContext *s, AVPacket *pkt)
         return AVERROR_EOF;
 
     ret = av_get_packet(s->pb, pkt, size);
+    if (ret < 0)
+        return ret;
 
-    if (ret != size) {
-        if (ret < 0) {
-            av_packet_unref(pkt);
-            return ret;
-        }
-        av_shrink_packet(pkt, ret);
-    }
     pkt->stream_index = 0;
 
     return ret;