]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dnxhddata.c
ff_parse_close() is not the correct function for H264Context.
[ffmpeg] / libavcodec / dnxhddata.c
index fa6d13fa4ab206ad012f5c7380bb9c95e12c6701..c1f2671c9d97a2d50e8884c3837c6aeef0e27c27 100644 (file)
@@ -428,6 +428,8 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx)
 {
     int i, j;
     int mbs = avctx->bit_rate/1000000;
+    if (!mbs)
+        return 0;
     for (i = 0; i < sizeof(ff_dnxhd_cid_table)/sizeof(CIDEntry); i++) {
         const CIDEntry *cid = &ff_dnxhd_cid_table[i];
         if (cid->width == avctx->width && cid->height == avctx->height &&