[libbluray-devel] Fix typo (check correct pointer for NULL)
hpi1
git at videolan.org
Sun Aug 21 12:37:21 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Aug 20 21:57:03 2016 +0300| [ee1d01f3eb26b86bd9f0f239743e8509a652c6b1] | committer: hpi1
Fix typo (check correct pointer for NULL)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=ee1d01f3eb26b86bd9f0f239743e8509a652c6b1
---
src/libbluray/decoders/m2ts_demux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbluray/decoders/m2ts_demux.c b/src/libbluray/decoders/m2ts_demux.c
index 9d166df..8739ef6 100644
--- a/src/libbluray/decoders/m2ts_demux.c
+++ b/src/libbluray/decoders/m2ts_demux.c
@@ -243,7 +243,7 @@ PES_BUFFER *m2ts_demux(M2TS_DEMUX *p, uint8_t *buf)
pes_buffer_free(&p->buf);
}
p->buf = pes_buffer_alloc();
- if (!buf) {
+ if (!p->buf) {
continue;
}
int r = _parse_pes(p->buf, buf + 4 + payload_offset, 188 - payload_offset);
More information about the libbluray-devel
mailing list