| 733 | } |
| 734 | |
| 735 | static int hb_stream_try_delete_ts_entry(hb_stream_t *stream, int indx) |
| 736 | { |
| 737 | int ii; |
| 738 | |
| 739 | if ( stream->ts.list[indx].pid < 0 ) |
| 740 | return 1; |
| 741 | |
| 742 | for ( ii = stream->ts.list[indx].pes_list; ii != -1; |
| 743 | ii = stream->pes.list[ii].next ) |
| 744 | { |
| 745 | if ( stream->pes.list[ii].stream_id >= 0 ) |
| 746 | return 0; |
| 747 | } |
| 748 | stream->ts.list[indx].pid = -stream->ts.list[indx].pid; |
| 749 | return 1; |
| 750 | } |
| 751 | |
| 752 | static void hb_stream_delete_ps_entry(hb_stream_t *stream, int indx) |
| 753 | { |