Skip to content

Commit

Permalink
fix libflv parser bug
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jun 12, 2015
1 parent c70f931 commit 97493bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo/other/libflv.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ static tb_size_t tb_flv_video_h264_sps_analyze_get_exp_golomb(tb_static_stream_r
++nbits;
b <<= 1;
}
return (b - 1 + tb_static_stream_read_ubits32(sstream, nbits));
return (b - 1 + (nbits? tb_static_stream_read_ubits32(sstream, nbits) : 0));
}
#endif

Expand Down

0 comments on commit 97493bf

Please sign in to comment.