Skip to content

Commit

Permalink
Fixes issue aizvorski#5.
Browse files Browse the repository at this point in the history
  • Loading branch information
mansourmoufid committed Jul 13, 2022
1 parent 34f3c58 commit 27764df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions h264_nal.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,9 @@ int find_nal_unit(uint8_t* buf, int size, int* nal_start, int* nal_end)
int rbsp_to_nal(const uint8_t* rbsp_buf, const int* rbsp_size, uint8_t* nal_buf, int* nal_size)
{
int i;
int j = 1;
int j = 0;
int count = 0;

if (*nal_size > 0) { nal_buf[0] = 0x00; } // zero out first byte since we start writing from second byte

for ( i = 0; i < *rbsp_size ; )
{
if ( j >= *nal_size )
Expand Down

0 comments on commit 27764df

Please sign in to comment.