lavc: implement accessors for some AVFrame fields.
authorNicolas George <nicolas.george@normalesup.org>
Sun, 29 Apr 2012 09:10:17 +0000 (11:10 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 3 May 2012 16:47:16 +0000 (18:47 +0200)
commite296f1b1c4f0b8d4d33f83036a80fd602aca7dea
tree3ea33fc4d2cc8b9bf5e2663f0b3fd56669ba7c4a
parentc1fe2db3769d1a9e2e8d3ea718e4306648bafede
lavc: implement accessors for some AVFrame fields.

Compared to av_opt_ptr, accessors bring:

- better performance (negligible);
- compile-time type check;
- link-time existence check
  (or at worst, a dynamic linker error instead of a NULL dereference).
libavcodec/avcodec.h
libavcodec/utils.c
libavcodec/version.h