[FFmpeg-devel] [PATCH 2/2] mxfenc: avoid depending on private codec structures and functions
Michael Niedermayer
michaelni at gmx.at
Fri Jan 4 21:19:19 CET 2013
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavformat/mxfenc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index ec54f34..aca938c 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1412,7 +1412,7 @@ AVPacket *pkt)
header_cid = pkt->data + 0x28;
cid = header_cid[0] << 24 | header_cid[1] << 16 | header_cid[2] << 8 | header_cid[3];
- if ((i = ff_dnxhd_get_cid_table(cid)) < 0)
+ if ((frame_size = avpriv_dnxhd_get_frame_size(cid)) < 0)
return -1;
switch (cid) {
@@ -1453,7 +1453,6 @@ AVPacket *pkt)
return -1;
}
- frame_size = ff_dnxhd_cid_table[i].frame_size;
sc->codec_ul = &mxf_essence_container_uls[sc->index].codec_ul;
sc->aspect_ratio = (AVRational){ 16, 9 };
--
1.7.9.5
More information about the ffmpeg-devel
mailing list