]> git.sesse.net Git - ffmpeg/blobdiff - ffprobe.c
avcodec/rv30: put the rpr check back in init with the max vs bits bug fixed
[ffmpeg] / ffprobe.c
index 2bb72ab3ecde7654dfcc2770f5281d7a03293a78..ef3bcc63f6f24ef3597000a5e50d0831a03a72dc 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1789,7 +1789,6 @@ static av_always_inline int process_frame(WriterContext *w,
     AVSubtitle sub;
     int ret = 0, got_frame = 0;
 
-    avcodec_get_frame_defaults(frame);
     if (dec_ctx->codec) {
         switch (dec_ctx->codec_type) {
         case AVMEDIA_TYPE_VIDEO:
@@ -1888,6 +1887,10 @@ static int read_interval_packets(WriterContext *w, AVFormatContext *fmt_ctx,
     }
 
     frame = av_frame_alloc();
+    if (!frame) {
+        ret = AVERROR(ENOMEM);
+        goto end;
+    }
     while (!av_read_frame(fmt_ctx, &pkt)) {
         if (selected_streams[pkt.stream_index]) {
             AVRational tb = fmt_ctx->streams[pkt.stream_index]->time_base;