Boolean, not bitwise AND. Thanks mla!
This commit is contained in:
parent
0cd90a8610
commit
dbe077c4a1
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ h264_decode_slice_header(th_stream_t *st, bitstream_t *bs, int *pkttype,
|
|||
int w = p->sps[sps_id].aspect_num * st->st_width;
|
||||
int h = p->sps[sps_id].aspect_den * st->st_height;
|
||||
|
||||
if(w & h) {
|
||||
if(w && h) {
|
||||
int d = gcd(w, h);
|
||||
st->st_aspect_num = w / d;
|
||||
st->st_aspect_den = h / d;
|
||||
|
|
Loading…
Add table
Reference in a new issue