[FFmpeg-devel] [PATCH 1/2] lavc: Add coded_w/h to AVCodecParameters

Li, Zhong zhong.li at intel.com
Mon Jan 22 04:05:46 EET 2018

> As mentioned in the thread for that patch already, writing new code using
> deprecated API should really be avoided.
> The way I see it, if someone really needs to know coded w/h (which is
> typically an internal technical detail of no relevance to users), they should
> decode a frame and get it from the decoder.

James posted some comments on https://patchwork.ffmpeg.org/patch/7342/ , please let me know if you have any other comment. 
Such code was added to remove printing coded_w/h once the API is removed:
          if (dec_ctx) {
              print_int("coded_width",  dec_ctx->coded_width);
              print_int("coded_height", dec_ctx->coded_height);

More information about the ffmpeg-devel mailing list