]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tiertexseq.c
avformat/httpauth: do not decode plus sign to space in credentials
[ffmpeg] / libavformat / tiertexseq.c
index a89a0a9d614b299f1cee70afc8feb5b27566de19..d7719e5acb80277eb46ac9ba72f846a26be49fe1 100644 (file)
@@ -273,8 +273,10 @@ static int seq_read_packet(AVFormatContext *s, AVPacket *pkt)
 
         /* video packet */
         if (seq->current_pal_data_size + seq->current_video_data_size != 0) {
-            if (av_new_packet(pkt, 1 + seq->current_pal_data_size + seq->current_video_data_size))
-                return AVERROR(ENOMEM);
+            rc = av_new_packet(pkt, 1 + seq->current_pal_data_size
+                                      + seq->current_video_data_size);
+            if (rc < 0)
+                return rc;
 
             pkt->data[0] = 0;
             if (seq->current_pal_data_size) {