diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-04 21:18:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-06 14:08:08 +0100 |
commit | 8214c1d82c34716c22c2e64489d3987adfcc28d1 (patch) | |
tree | 77a4bd44873f2d95ece620e6357d4645c31c706c /libavformat | |
parent | 3db02b83e7d455d939e30832dbb802527c0937e2 (diff) | |
download | ffmpeg-8214c1d82c34716c22c2e64489d3987adfcc28d1.tar.gz |
mxfenc: avoid depending on private codec structures and functions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxfenc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index ec54f340f1..cf9b77dd92 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1401,7 +1401,7 @@ AVPacket *pkt) MXFStreamContext *sc = st->priv_data; int i, cid; uint8_t* header_cid; - unsigned int frame_size = 0; + int frame_size = 0; if (mxf->header_written) return 1; @@ -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 }; |