Commit 0f426c15 authored by bcoudurier's avatar bcoudurier

set width and height even for mpeg4, pix_fmt to NONE will force decoding anwyay


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5303 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 36d7b005
......@@ -967,13 +967,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
get_be32(pb); /* vendor */
get_be32(pb); /* temporal quality */
get_be32(pb); /* spacial quality */
if(st->codec->codec_id == CODEC_ID_MPEG4){ //FIXME this is silly
get_be16(pb);
get_be16(pb);
}else{
st->codec->width = get_be16(pb); /* width */
st->codec->height = get_be16(pb); /* height */
}
get_be32(pb); /* horiz resolution */
get_be32(pb); /* vert resolution */
get_be32(pb); /* data size, always 0 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment