Merge remote-tracking branch 'qatar/master'
* qatar/master: h264_parser: use enum values in h264_find_frame_end() Conflicts: libavcodec/h264_parser.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
						commit
						f3a862935d
					
				| @ -76,13 +76,15 @@ static int h264_find_frame_end(H264Context *h, const uint8_t *buf, | |||||||
|             else |             else | ||||||
|                 state >>= 1;           // 2->1, 1->0, 0->0
 |                 state >>= 1;           // 2->1, 1->0, 0->0
 | ||||||
|         } else if (state <= 5) { |         } else if (state <= 5) { | ||||||
|             int v = buf[i] & 0x1F; |             int nalu_type = buf[i] & 0x1F; | ||||||
|             if (v == 6 || v == 7 || v == 8 || v == 9) { |             if (nalu_type == NAL_SEI || nalu_type == NAL_SPS || | ||||||
|  |                 nalu_type == NAL_PPS || nalu_type == NAL_AUD) { | ||||||
|                 if (pc->frame_start_found) { |                 if (pc->frame_start_found) { | ||||||
|                     i++; |                     i++; | ||||||
|                     goto found; |                     goto found; | ||||||
|                 } |                 } | ||||||
|             } else if (v == 1 || v == 2 || v == 5) { |             } else if (nalu_type == NAL_SLICE || nalu_type == NAL_DPA || | ||||||
|  |                        nalu_type == NAL_IDR_SLICE) { | ||||||
|                 state += 8; |                 state += 8; | ||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user