[FFmpeg-cvslog] tools/fourcc2pixfmt: Avoid using non public AV_PIX_FMT_NB

Michael Niedermayer git at videolan.org
Tue Jun 10 04:08:40 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 10 00:44:11 2014 +0200| [9c9eac5c2666469a002963fccd8bda59eab818c6] | committer: Michael Niedermayer

tools/fourcc2pixfmt: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c9eac5c2666469a002963fccd8bda59eab818c6
---

 tools/fourcc2pixfmt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/fourcc2pixfmt.c b/tools/fourcc2pixfmt.c
index 1a653ed..1cfdf6a 100644
--- a/tools/fourcc2pixfmt.c
+++ b/tools/fourcc2pixfmt.c
@@ -100,7 +100,7 @@ int main(int argc, char **argv)
     }
 
     if (list_pix_fmt_fourccs) {
-        for (i = 0; i < AV_PIX_FMT_NB; i++) {
+        for (i = 0; av_pix_fmt_desc_get(i); i++) {
             const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(i);
             if (!pix_desc->name || pix_desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
                 continue;



More information about the ffmpeg-cvslog mailing list